using System;
using DevExpress.Xpo;

namespace BusinessObjects
{

    public class DiaChi : XPObject
    {
        public DiaChi()
            : base()
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public DiaChi(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }

        //Fields

        private string _toaNha;
        [DbType("nvarchar(100)")]
        public string ToaNha
        {
            get { return _toaNha; }
            set {SetPropertyValue("ToaNha", ref _toaNha, value); }
        }
        private string _soNha;
        [DbType("nvarchar(100)")]
        public string SoNha
        {
            get { return _soNha; }
            set {SetPropertyValue("SoNha", ref _soNha, value); }
        }
        private string _tenDuong;
        [DbType("nvarhar(100)")]
        public string TenDuong
        {
            get { return _tenDuong; }
            set {SetPropertyValue("SoNha", ref _tenDuong, value); }
        }
        private string _phuong;
        [DbType("nvarchar(50)")]
        public string Phuong
        {
            get { return _phuong; }
            set {SetPropertyValue("Phuong", ref _phuong, value); }
        }

        [NonPersistent]
        private Quan _quan;
       
        public Quan Quan
        {
            get { return _quan; }
            set {SetPropertyValue("Quan", ref _quan, value); }
        }

    }

}